<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="./animate.css">
    <style>
        p{
            height: 100px;
            width: 100px;
            background-color: red;
            margin: 0 auto;
        }
    </style>
    <script src="../vue-v2.0.3.js"></script>
    <script>
        window.onload=function(){
            new Vue({
                el:"#box",
                data:{
                    show:false
                }
            });
        }
    </script>
</head>
<body>
<div id="box">
    <input type="button" value="点击显示隐藏" @click="show=!show">
    <transition enter-active-class="animated zoomInLeft"
                leave-active-class="animated zoomOutRight"
    >
        <p v-show="show"></p>
    </transition>
</div>
</body>
</html>